<%-- 
    Document   : create_post
    Created on : 31 May, 2012, 10:12:06 PM
    Author     : bharat
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="./css/maincss.css">
        <link rel="stylesheet" type="text/css" href="./css/myaccountcss.css">
        <title>Online College Magazine</title>
    </head>
    <body>
        <%
            String usr_name = (String)session.getAttribute("usr");
        %>
        <div class="container">
            <div class="header">
                ONLINE COLLEGE MAGAZINE
            </div>
            <div class="navigation_menu">
                <%@include file="navigationmenu.jsp"%>
            </div>

            <div class="slab">
                <form method="post" action="create_post_db.jsp">
                    <table border="0" cellpadding="10">
                        <tr>
                            <td>
                                Type
                            </td>
                            <td>
                                <select name="type">
                                    <option value="">Select..</option>
                                    <option value="article">Article</option>
                                    <option value="experience">Experiences</option>
                                    <option value="joke">Jokes</option>
                                    <option value="poetry">Poetry</option>
                                    <option value="puzzle">Puzzles</option>
                                    <option value="quote">Quotes</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Subject
                            </td>
                            <td>
                                <input type="text" name="subject" maxlength="100"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Post
                            </td>
                            <td>
                                <textarea cols="70" rows="10" spellcheck="true" maxlength="4000" name="post"></textarea> 
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <input type="hidden" name="usr_name" value="<%=usr_name%>" />
                                <input type="submit" value="Post" />
                                <input type="reset" value="Clear" />
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
                                
            <div class="profile">
                <%@include file="display_profile.jsp" %>
            </div>


            <div class="footer">
                FOOTER
            </div>
        </div>
    </body>
</html>
